package com.lanyam.travel.base.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author rosson
 * @since 2020-01-30
 */
@TableName("order_user")
public class OrderUser extends Model<OrderUser> {

    private static final long serialVersionUID = 1L;

    @JsonProperty(value="id")
    private String id;
    
    @JsonProperty(value="orderId")
    @TableField("order_id")
    private String orderId;
    /**
     * 姓名
     */
    @JsonProperty(value="userName")
    @TableField("user_name")
    private String userName;
    /**
     * 身份证
     */
    @JsonProperty(value="idCard")
    @TableField("id_card")
    private String idCard;
    /**
     * 联系方式
     */
    @JsonProperty(value="phone")
    private String phone;

	public String getId() {
        return id;
    }

    public OrderUser setId(String id) {
        this.id = id;
        return this;
    }

    public String getOrderId() {
        return orderId;
    }

    public OrderUser setOrderId(String orderId) {
        this.orderId = orderId;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public OrderUser setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getIdCard() {
        return idCard;
    }

    public OrderUser setIdCard(String idCard) {
        this.idCard = idCard;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public OrderUser setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
